<?php #coding: utf-8 æ ø å

class Sov extends CI_controller {

	function nok(){
		$this->load->model('sov_model');
		$data['timer'] = $this->sov_model->vis_graf();
		$this->load->view('sov/sov_index', $data);
	}

	function indtast()
	{
		$this->load->model('sov_model');

		$data['seneste_dato'] = $this->uri->segment(3,0);
		$this->load->view('sov/sov_indtast', $data);
	}

	function gem()
	{
		$this->load->model('sov_model');
		$dato = $this->uri->segment(3,0);
		$timer = $this->input->post('timer');
		$this->sov_model->gem($dato, $timer);
		redirect('sov/nok');
	}

	function end()
	{
		$this->load->model('sov_model');
		$data['timer'] = $this->sov_model->vis_graf_slut();
		$this->load->view('sov/sov_index_end', $data);
	}

}

?>
